package com.baichuan.controller;

import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ldy
 * @Date 2022/7/31 18:35
 * @Description
 **/
@RestController
public class testController {
    @GetMapping("/test/{t}")
    public String test(@PathVariable("t") int t) {
        //int i = t / 0;
        return t+"";
    }
}
